﻿<%@ Page Language="C#" MasterPageFile="~/FrameMasterPage.master" AutoEventWireup="true" CodeFile="planningAdd.aspx.cs" Inherits="planningAdd" Title="Untitled Page" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="m_contentBody" Runat="Server">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <img src="images/pnlTitle1Left.png" alt="" width="6" height="24"/></td>
                        <td style="width:100%" class="txtHeader">
                            Add new planning </td>
                        <td align="right">
                            <img src="images/pnlTitle1Right.png" alt="" width="6" height="24"/></td>
                    </tr>
                </table>
                <table width="100%" border="0" cellpadding="0" cellspacing="0"
                 style="height: 130px; width: 350px;">
                 <tr>
                        <td class="Description" style="width:80%" align="left">
                            Work order ID<asp:Label ID="Label1" runat="server" CssClass="redLabel">*</asp:Label>
                            </td>
                        <td style="width:70%" align="left">
                            <asp:TextBox ID="txtWorkOrderID" runat="server" Width="150px"></asp:TextBox>
                            <asp:Label ID="lblRequiredWOID" runat="server" ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                     <tr>
                        <td class="Description" style="width:80%" align="left">
                            Employee to be assigned<asp:Label ID="Label2" runat="server" 
                                CssClass="redLabel">*</asp:Label>
                            </td>
                        <td style="width:70%" align="left">
                            <asp:DropDownList ID="drlITStaff" runat="server" DataSourceID="odsITemployee" 
                                DataTextField="EmployeeName" DataValueField="EmployeeId" Height="25px" 
                                Width="155px">
                            </asp:DropDownList>
                            <asp:ImageButton ID="imgButtonLabor" runat="server" Height="16px" 
                                ImageUrl="~/images/calendar.png"  Width="16px" />
                             <asp:Label ID="lblRequiredITStaff" runat="server" ForeColor="Red"></asp:Label>  
                             <asp:ObjectDataSource ID="odsITemployee" runat="server" 
                    SelectMethod="GetAssignedEmployees" TypeName="Service.ReferenceDataService">
                </asp:ObjectDataSource> 
                        </td>
                    </tr>
                    <tr valign="top" style="width:550px">
                        <td style="width:555px" class="Description" colspan="0" align="left">
                            Plan date(mm/dd/yy)<asp:Label ID="Label3" runat="server" CssClass="redLabel">*</asp:Label>
                            </td>
                        <td style="width:90%" align="left">
                            <asp:TextBox ID="txtPlanDate" runat="server" Width="150px"></asp:TextBox>
            <asp:Image ID="Image3" runat="server" ImageUrl="~/images/calendar.png" />
            <asp:Label ID="lblRequiredPlanDate" runat="server" ForeColor="Red"></asp:Label>
            <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtPlanDate" PopupButtonID="Image3">
            </cc1:CalendarExtender>    
                        </td>
                    </tr>
                    <tr valign="top" style="width:550px">
                        <td style="width:555px" class="Description" colspan="0" align="left">
                            Required date(mm/dd/yy)</td>
                        <td style="width:90%" align="left">
                            <asp:TextBox ID="txtRequiredDate" runat="server" Width="150px"></asp:TextBox>
            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/calendar.png" />
            <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtPlanDate" PopupButtonID="Image1">
            </cc1:CalendarExtender>
            
                              
                            
                        </td>
                    </tr>
                    <tr valign="top">
                        <td style="width:100%" class="Description" align="left">
                            Plan time (hh:mm)<asp:Label ID="Label4" runat="server" CssClass="redLabel">*</asp:Label>
                            </td>
                        <td style="width:70%" align="left">
                            <asp:TextBox runat="server" ID="txtPlanTime" Width="170" MaxLength="40"></asp:TextBox>
                            
                            <asp:Label ID="lblRequiredPlanTime" runat="server" ForeColor="Red"></asp:Label>
                            
                        </td>
                    </tr>
                    <tr valign="top">
                        <td style="width:50%" class="Description" colspan="0" align="left">
                            Estimate time (in minutes)</td>
                        <td style="width:70%" align="left">
                           
                            <asp:TextBox ID="txtEstimatedTime" runat="server" MaxLength="20" 
                                Width="170"></asp:TextBox>
                           
                        </td>
                            
                    </tr>
                    <tr valign="top">
                        <td class="Description" style="width:30%" colspan="0">
                            Priority</td>
                        <td style="width:70%" align="left">
                            <asp:DropDownList ID="drlPriority" runat="server" 
                                Height="25px" Width="100px">
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem>8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr valign="top">
                        <td class="Description" style="width:30%; height: 20px;" colspan="0" 
                            align="left">
                            Remark</td>
                        <td style="width:50%; height: 26px;" align="left">
                            <asp:TextBox ID="txtRemark" runat="server" Height="68px" Width="170px" 
                                TextMode="MultiLine"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="Description" style="width:80%" align="left">
                            &nbsp;</td>
                        <td style="width:70%" align="left">
                            <asp:Button ID="btnValidateWorkOrder" runat="server" BorderStyle="Dotted" 
                                CssClass="btnexpress" Height="20px" onclick="btnValidateWorkOrder_Click" 
                                Text="Validate" Width="71px" />
                            <asp:Button ID="btnCancelWorkOrder" runat="server" BorderStyle="Dotted" 
                                CssClass="btnexpress" Height="20px" onclick="btnCancelWorkOrder_Click" 
                                Text="Cancel" Width="71px" />
                            <asp:Label ID="lblPermission" runat="server" ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                </table>
</asp:Content>

